﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NLBS.Entity
{
    public class User
    {
        private int _userID;

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        private string _name;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _password;
        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        private string _salt;

        public string Salt
        {
            get { return _salt; }
            set { _salt = value; }
        }

        private int _groupID;
        /// <summary>
        /// 用户组ID
        /// </summary>
        public int GroupID
        {
            get { return _groupID; }
            set { _groupID = value; }
        }

        private string _groupName;
        public string GroupName
        {
            get { return _groupName; }
            set { _groupName = value; }
        }

        private int _gender;

        public int Gender
        {
            get { return _gender; }
            set { _gender = value; }
        }

        private string _email;
        /// <summary>
        /// 用户Email
        /// </summary>
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        private bool _hideEmail;
        /// <summary>
        /// 是否隐藏Email
        /// </summary>
        public bool HideEmail
        {
            get { return _hideEmail; }
            set { _hideEmail = value; }
        }

        private string _homepage;

        /// <summary>
        /// 主页
        /// </summary>
        public string Homepage
        {
            get { return _homepage; }
            set { _homepage = value; }
        }


        private int _articleCount;
        /// <summary>
        /// 发表的日志数量
        /// </summary>
        public int ArticleCount
        {
            get { return _articleCount; }
            set { _articleCount = value; }
        }

        private int _commentCount;
        /// <summary>
        /// 发表的评论数量
        /// </summary>
        public int CommentCount
        {
            get { return _commentCount; }
            set { _commentCount = value; }
        }

        private DateTime _lastVisit;

        /// <summary>
        /// 最后访问时间
        /// </summary>
        public DateTime LastVisit
        {
            get { return _lastVisit; }
            set { _lastVisit = value; }
        }

        private string _ip;

        /// <summary>
        /// 最后访问的IP
        /// </summary>
        public string IP
        {
            get { return _ip; }
            set { _ip = value; }
        }

        private string _hashKey;

        public string HashKey
        {
            get { return _hashKey; }
            set { _hashKey = value; }
        }

        private UserGroup _group;
        /// <summary>
        /// 关联的用户组信息
        /// </summary>
        public UserGroup Group
        {
            get
            {
                return _group;
            }
            set
            {
                _group = value;
            }
        }
    }
}
